package com.iengoo.inductionms.ctrl.rest;

import com.iengoo.inductionms.entity.HealthCondition;
import com.iengoo.inductionms.service.HealthConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Author:huermao
 * 健康状况表
 **/
@RestController
@RequestMapping("/health_condition")
public class HealthConditionController {
    @Autowired
    private HealthConditionService healthConditionService;
    @GetMapping
    public List<HealthCondition> getHealthCondition() {
        List<HealthCondition> healthConditionList = healthConditionService.queryAll();
        return healthConditionList;
    }
}
